'use strict';

const { Controller } = require('egg');

class TableController extends Controller {
  async queryWithInnerJoin() {
    const { ctx } = this;
    const result = await ctx.service.tableSql.queryWithGroupBy();
    ctx.body = {
      code: 200,
      message: 'success',
      result,
    };
  }
}

module.exports = TableController;
